from ..database import database
from peewee import *


class DeliverInfo(database.Model):
    id = PrimaryKeyField(primary_key=True)
    type = CharField(db_column='type', help_text='物流方式,  ticket= 票据  express = 快递')
    carrier = CharField(db_column='carriers', max_length=200, help_text='承运商', default='SYSTEM')
    trace_no = CharField(db_column='trace_no', max_length=80, help_text='追踪号')
    extension = CharField(db_column='extension', max_length=400, help_text='扩展字段')
    deliver_time = DateTimeField(db_column='deliver_time', help_text='发货时间')
    status = CharField(db_column='status', help_text='发货状态', default='created')
    trace_info = CharField(db_column='trace_info', max_length=2000, help_text='追踪信息')
